﻿using System.ComponentModel.DataAnnotations;

namespace RotaractProjectCalendar.Models
{
    public class Mail
    {
        [Required]
        [DataType(DataType.EmailAddress)]
        public string From { get; set; }

        [Required]
        [DataType(DataType.EmailAddress)]
        public string To { get; set; }

        [DataType(DataType.Text)]
        [StringLength(30)]
        public string Subject { get; set; }

        [DataType(DataType.MultilineText)]
        [StringLength(1024)]
        public string Body { get; set; }
    }
}